Fixed process handling to accept also arrays with the arguments and changed the way the previous branch is recovered