Added some logging messages.