Initial code for client part.