Added option parsing to define servers, and bunch of debug messages.