Migrated from scala actior to akka actor