Fixed issue where user supplied output name would be ignored.