Merge collectionstats instructions code