Doc and cleanup.