Fix couple of warnings. Optimise codegen.
Implement default options for the connection & values negotiation.