Add prepare and commit tracking to the log