Updated templates to use scala.concurrent