Added logging messages.