Added documentation and a check.