Unnecessary system.out.println()s removed.