Through my further research, I came across a similar problem in a forum and was now able to change the code so that I achieved the function I wanted. So this thread is solved