Combine code for setting up and resetting
Change gateway to not be an option