Revise commands; some pseudocode.