[Deployed version 1]
Add error checking utility.