Added initial implementation of state saving, restoring, and fossil collection