Add timestamp handling function and export options