Add window argument on calls to compute_motion.