Adding logging capabilities.