Use latest id instead of latest time