Changed spend coins to support multiple outputs.