Added motion detector.