Configured spring to run async methods
Added motion detection