Added motion detector script