Adjusts logic to retrieve active gateway