Added motion detector