Slight tweak to get_text