Overhaul of command system & logging system