Implemented persistence. Please report any bugs.