Added regulatory test patch from Ninux.