Adding logging.   (damn thing doesn't update sometimes)