Added check for multiple calls to Register method