Added Log functionality