Added method unregister to the registry