Added thread class