Final solution.

wtf is this thread