Initialization for Client and Server classes