Adding Resource metadata to files