Attempted some debugging. Still needs more. Something wrong with line 203