Add command handling.