No need to do it inside loop
Add logging and make it TB 24.1 compatible