Makes some changes for deployment to pi