Removed references to stack from methods and local variables