Brought in stuff from simple_rod, started converting. Not quite ready yet.