Add backwards compatibility for register API.