Qualty control changes for saving data and window size.