Added a get all ids method.