Threaded-function method added to utils.