Moved to using map function vs for loop.