Revamped build script.