Portfolio Selection in Stochastic Environments