Implemented query interface.