Add basic query method.