Client side main