Adding the concept of the last gathered id.