Better logging of data