Added missed thread declaration