Adds conditional collapses.