Builds and exports.