added log messages back.