Changed processing just to drop 2 last lines. I really hope this works over different platforms.