Bug fixes in fold, cleanup in dedisperse.