Kotlin (JVM) implementation of Envi