Firms' Capital Structure Choices and Endogenous Dividend Policies