Define scanNum in case there are multiple scans in planC