Fixed the Motion Control script