Finished build script, needs testing