Add missing import of q