Estimating the motion