Added getIds method