Removed utlity function to capture textnode