Upload the motion code