Error checking and reset tables