Updated build script for PA