Export changed to use R instead of collection.