Fix documentation and make it work.