Fixed get_resource_name and reverted comments