Rip out command loop stuff in place of readcommand module