Add comment and change function names.