Updated to new API: getId()