Added Register API.