Backwards-compatible implementation of get_model().