Move opts copying to earlier in process.

Aimed at fixing