Adding timestamp to data