Finished the bit that processes the records. Next up: actual output.