Cleaned up imports and avoided looping through the walker iteratable twice in processStats