Added control if file exists