Explicit error checking