Client side code finished