Converted leave base class to Scala.