Add get-text function.