Added better logging messages. For debugability.