Imploved diff setting.