Thanks the function executes but it has stopped the animation from playing. Do you know what might have happened.