* Renamed mergeEffects to make purpose of function more clear