Added option to specify an existing branch