Removing System.out lines from code