Added getIndex and started getNetwork