New function to detect untouchable resources