Modified to handle more level IRiakObject. Other bug fixes. Key dumping finished
Framework for resume function