Add define method to Q.