Solved, runs in 0.165s