Used "scanUnits" field to store scan units instead of scanType.