Use local variables instead of instance variables