Main and analysis, q/u and pure u implementations