Transposed the perfect foresight routines.