This isn't too bad, but in general the future of this cookbook should be to use the XML-RPC API directly.