Add debugging for index at server side