Needed to move this up so it was initialised before a goto on failure to read from web API. If its not initialised then get a crash if the goto is triggered