The correct amount of locals is now declared in each method