Simplifying the bin expression.
Removing unused variables.