Made the app code use the more efficient safe_do method of active collections