Create subnet object instead of calling directly