Factors that contribute to gene flow