Replace q with kew for massive performance increase