Extra error checking.