Prepare model implementation.