Added a time-out procedure on the server connection, and added the code for reading and processing the configuration file.