Replace Config with a hash