Add checks to build script.