Added adjustable persistence on fileexists() check, comments.