Implemented model creating.