Changed the executing phase of deployment script.