Fixed Q api usage