Fixing query parameters - passing to spawn