Simplified check for commands.