Added multiple output types, stderr goes to err