Add more documentation.
Remove unused variable.