Started refactoring Lei encounter