Added query_status