Scan: handle missing samples better
Scan: produce offset table in the correct order
Scan: turn off power after scanning