Improved filterSection (more generic), also small improvements on real state ctrl.