Flexibility and Commitment when Forming an Alliance