Beginning to modernise my old motion detection demo.