Fixed nested loop - there's no need for one.