Factors Influencing Teachers' Performance and Retention