New working version of the adjoint