Added configuring persistence