Added motiondetector