Added client-side generation to WID