Doesn't this crash if no argument is supplied ( which works in the existing script )?