@desiboy: I saw your code a bit late otherwise it would have saved me some time