- Changed smart_execute_command() implementation.