Added optional argument for hard or soft redeployment