Merged in missing setReadPreference #948