Fix #25; add user agent to debug info