Source code for Persist