Added internal newFile method