Add logging to utils.