Refactored to keep src script files out of build.