The break was not in the right scope and thus exiting the echo loop immediately in the first iteration.