Added missing filename extension to output.