Setting up model base.