The thermostat may allow the engine to run too cool, which will cause it to run rough at idle. Replacing the thermostat should fix this concern if the engine is running too cool.