Add unregistration functionality and other useful functions
Execute callbacks on separate threads