System.out debug messages removed.