Made main() run in it's own thread.