Port Timer to Scala