Added the .main class method to Thread.