Added for the custom read_ref()