Use qctx, qdev throughout the code