Add convenient method to get model id.