Connecting correctly and using config files.