Use size_t for record length (for retrieval)