Sample code for AQ client side.