Changed printouts to Logger.debug(...)