IsNumber function added. Fix in sample.