media variable name is reused and overwritten causing issues with event expiration & clean up. Also changed name in pure_duplicates for consistency.