Added createThread()
Clean up