$output_new is nowhere defined, use $output instead.
Merge pull request #3 from dietmarw/patch-1

$output_new is nowhere defined, use $output instead.