Initial commit of some almost-kinda-working code.