Fixed #12 and this is where bool_tool() and query_tool() were created.