Initializing client