Add for loop implementation.