Fixes #43 Implement CAS using Options