Changed all "id" to "instancetype".