TPC implemented.
Modify the client to invoke the find_pref and power.
small changes/