Error handling. Kind of.