Comitting Ernesto's CASL patch 2

Addresses part of #70.  Must be merged after #144.