Adding logging support.