Added persistence functions.