Passed persistMode through where it was previously unused