Added basic model freezing support and field validation