Patched things together into a working prototype.