Converted Wavelets to Scala.