Added printing of output