Allow specifying record type in get_record() function