Improved the way the visit ID is set in the changeover log