Ported control panel to Scala.