Refactering saveTime and loadTime