Fixed bug with output file name - was concatenating