Additional error checking.