Partially migrated to scala
Partially migrated to scala