Add flags for record extensions; still not working properly though