Added support for configuring persistence.