Adding a callback function parameter

You can add a function (optionnal) after the options parameter.