Added logger. Improved messages.