Add key index, Add method to check if key exists