Adding debug output to trace down timing issue