Remove unused header.
Eliminate global variable 'intensity'