Added BestPosition and related refactoring.