Get module assignments and routing right
First working version
Honor limitation of max. 4 programs per day
Improved output.