Cleaned up command execution.