Client side code for EAC