Updated the return value for getting the Ids