Fixed read function so that prints in same order as arguments are given