Added function pointer to thread control block.