Adding save(collection) to speed up load time
Added the time to process for the discount function calculation