Improved configuration lookup.