Adding error verification helpers