Updated to new CAS API.