A few simple error protections.