Rework processpool a little. It's almost generic now.