Adding ability to give an attribute callback for CAS