Renamed index and main to sheet.