Added documentation and rotating.