Adding logging feature.