Moved function to prevent outdated timestamps