Added the MotionFrame handler