Added support for specifying the deploy method