Sorry I misunderstood your comments. I can revert this back to one method and just use result.value instead of result.text.