Code from last night

Probably worthless, proof of concept.