Added functionality for reading from a log.