Initial commit

Months after I wrote this code.