Reduce number of local variables