Refactored the build process.