I wrote a possible solution I found as a reply on another issue. I found the solution by reading this article