Motion detection on server