Added user-agent support and save responses