Adding thread pool utilities. Adding minor stuff.