Similarly, this should be changed to take advantage of $log.