Added debug to catch initialisation failures