Adding a "cas" function to data module