Motion Detection separated to a different module