Added the motion threshold