Add basic command handling.