Added client-side logging. Fixes #10