Created client struct and added support to non-TLS connections.