Order of output is correc