Added outputTo option.