Added multiple server support, still needs more work done.