Cas security

Chris -

This is my first attempt with a pull request. I apologize if I get it wrong.

Garey