Made file multi-instance aware