Cam controller