Better verification of record lengths and last record length