Basic model APIs are now functional (need optimize)