Logger code added