Improved contect for thread method.