Fixed problems with filename formatter causing program not to run.