Thank you for your help but this didn't make any difference unfortunetly. The function still freezes the movement