@tipiirai I tried refactoring that code but this way was much faster, can you share some link about this "dark magic"?