This should probably be at the bottom of the thread, not the top, so that it will be the first thing to be invoked.