Replaced with while. Oh, Scala.