Changed `for` with closure to forEach.