Added random flag selection, the mod is now functional.