Simulate a lot of useless code in a method