Renamed mainThread_new and removed old mainThread