Updated deploy method