Catch tf exceptions
Add parameter to control damping