Simple library of optimised function