Added crash logging.