Create motion detector