Updating the camera code