Added method to get an ID by title and type.