Added a constructor that gets passed a host & port.