Add debug log for confirm write