Exposing register_model as an api for client to use