Added dumping functionality and utility.