Write history checkbox and enable/disable history writer logic added.