Added initialised flag to core to stop GUI starting up if not correctly initialised.