Add function comment and get rid of unused variable.