Add an execute2 function that is more flexible and allows to use parallel