Some setup stuff
I think this is all in the right place.

No rust yet, but I think it works