Updated the flee function.