Test

Wrote function in less lines but takes 200 ms longer, approx.