Advanced functions in Kotlin.