Better more scalable and infinitely more complex way to handle the list all ids