Adding register API method