Add option to dump local frames