added output name argument