Config and connectFunctions