Hastily hacked-together parallel helper functions