Adding communication logging