Added new method for obtain ids...