Adding log wrapper