Adapted foreach to handle references as parameters