Add some documentation. Reuse code.