Refactored config editor a bit.