Piecing together

This is manually pieced together (and has some horrible inefficiencies
designed to test the limits). Still, it works, so I am saving my
progress.