Adding log capabilities