Join loop onto one line