Fixed issue with configuration display
Improved configuration display algorithm