Adding logging statements