Client's func