Added main server constructor