Updated code to almost match input from Phelan's values.