Add query price function.