Add basic stack inspection support