Change query method.