Updated code to match new spread sheet.