Add possibility to modify the configuration for persistent connection