Added ModelConverter code