Hopefully this stops the file resource creating a new one