Add ref to CAS, closes #32