Argument for thread number, removed debug info printing