Modify deploy method.