Election, Riots and Mass Migration