Global Capital Flows and Macroeconomy