See other comment, pass the preferences object.