Removed old stack measurement code