Added logging to utilities.