Added runnable method to test thread spawning and running.