Attemptive to fix the routine for thread initiatilization