Working Code after Intermittent Demo