Ports helper methods from Threads into the core.