Added simple preference IO