Added a check to see if the camera moved.