Improve bundling process.
Fix issues related to bundling.