Make record types work