Succesfully got it to check for movement at an n threshold