Add query classes.