Added some public methods to Client class, so it's now usable from the outside