Error check.