Almost works now-still some randomise problems although.