Change callback prototype to facilitate the usage with a lot of option