  Given a finitely presented group $Q$ and a compact special cube complex $X$
with non-elementary hyperbolic fundamental group, we produce a non-elementary,
torsion-free, cocompactly cubulated hyperbolic group $\Gamma$ that surjects
onto $Q$, with kernel isomorphic to a quotient of $G=\pi_1 X$ and such that
$max\{cd(G),2\}\geq cd(\Gamma)\geq cd(G)-1$.
