Implement chaos functions.