Create primary index. Working