Unnecessary printlns removed