Added if else to index