Added logging using NLog.