Add crashtest function.