Updated the motion to avoid jumps or bounces.