Some code thats needed for live testing.