Lots of command loop stuff, almost nothing works yet