Use local variables instead of class variables