Works with an empty file or saved file