Added error when registering command