Add assert to check for both location and host/port options