Improve config routine parameter scanning.