I'm uncertain, but I think this would read better without the temporary variables.