Added end time for the object motion.