Changed all System.out.println to SPLog.debug