Got error stuff working and now debugging the index