Clean up stack breakdown function