Improved hut sidebar logic.