Added file exists sanity check