Rework the build mechanism.