Modified getIndexkeys