Added function to add a timestamp column.