Added log-reading feature.