add timestamp functionality.