Set up metrics model.