Got calculation of response value to work
Changed to using char arrays instead of NSString