Added the ability to unregister things.