Added functionality to initialize portfolios, untested