Working code.

The code appears to be working. Need to do a thorough check of the results for
the various limiters to see if everything is OK.