Added filter to only store dirty cols.