Made safely concurrent.
Added port ranges closing to api tests.
Renamed variables.