First cut at adding CAS statements