Improved the first thread file