WIP. More changes to CAM script.