Added 3rd argument to the function passed to getopt:to_record/4