Refactor timestamp checking routines
Save vertices to file for reuse