You can use [Groovy's nifty multiple assignment operator](http://groovy.codehaus.org/Multiple+Assignment) to avoid having to introduce these ```tmp``` variables.