Set current config in init.
Reorder some definitions.