Make collapse mode configurable, via configuration file