Add support for thread hint function.