Add back missing thread function check.