Improve the order of the deploy process