Removed useless variable and parameter WW, not utilized in code.