This is a direct port of the Process Pool application in Learn You Some Erlang.