New wrapper generator.

Tests coming soon.