Added the camerastate classs