Add the formatting parameters.
Range over the map directly.

The first part of the loop was deleting elements from the map of jobs but the
second part was still trying to access those deleted elements. Fixes #10.

Too bad I didn't write tests!