Added client-side logging