Modified stack tester code