Added an initialize method for the Client