Replace Preferences with Kotlin version