Some code to make deploying PE simple(er)