Add to_string and query_name to base.
Stylize base.