Factored out fncas.h