Added output printing