Add a bit of error checking