Release 2.2

[2.2] Release:
- Optimization of the function.