@JanWillemTulp thanks for the shout. but @pudo deserves credit as well, as he has written the major part of the code :)