Cleanup and documenting.