Pull subnet creation out it main script