added timestamps and sorting