Sets up models