Prior to changing the way mainthread is handled.