Bring in Xan's Balance mode code plus...