Added a 'callback' function to alter the query for inspector (both root & children)