bool ok = false; // otherwise potential uninitialised access at line 801 below.