mes: Reimplement records.