Add handler and functions to setup config