Implemented User Defined Model.