Adds custom forEach and map functions.