Implemented basic log generation, untested.