Scala rewrite of Last Ditch project.