Changed from print methods to logging for logging information