Better bulk command generation and response parsing