Using hooks to change configuration