Adding capturing of the log