Change Index to main for ignore connection timeout on phone