Added the ability to add background threaded blocks and selectors as event handlers.