Add timestamps function.