More stable motion detection