Fixed index cols and added create/dropRefs().