Tim's efficiency improvement for adding file to resource that didn't yet exist.