Get set up for command mode; remove debug stuff