Added a prepare deploy method