Start of client part