Added deploy method logic