Set up structure for complex error checking