Use local variables rather than member fields when possible