Adding a few checks to model code