Revise code to work with the new command processing architecture.