Adds alternate section collapsing and changes 'ending' to 'average'