Initial commit

A bit flakey but kinda works.