#999: Portfolio module generator
#999: Portfolio module generator. Data source reestructuration.