Variable Optimization & duplicate removal is done in input format.
Added apache math to dependencies.
No need for # check.