Epistasis and Pleiotropy in Evolving Populations