Add all the loop statements.