Adding Reset. Cleaning Logic for CAM. Still needs tests