Fixed binding

Using startComputation and endComputation
Be careful as you could be calling `onwarning` several times. `onwarning` should not call the callback as it is not final.