Fixed a nasty bug in ThreadRunnable, moved to the new Light system.