Add persistence functions.