Update calls to the forEach function in the terminal module.