I don't really think this is what it is supposed to be.
I will try to find another way that is more fail safe