Basic functioning of the client