Use record accessors rather than pattern matching so that adding new fields to the model doesn't break things