Added debug function for get_read_access function