Standard Command-Based code.