Maybe this way?
And try to add some logging