Added documentation for new error checking.