Client side code (proxy):