Fixes issues where the old optimistaions class was accidently reverted recently. Have changed 5050's code to correct use the static variable that he previously set.
Needs testing by QA team but should work fine!