Non working ver
Version with file exists