Use scala for activities