Fixed unused parameters and whitespace issues.