Implemented merge + loop stmts