Further error checking.