Client adopt function.
Client give function.
Working code.