Sorry for the Finnish language in the script. I made it for my own purposes and will post a English version of it too.