Added api for setting preferences