No need to do two loops.