Added functionality to obtain the log