thanpolas: Even being a functional solution, it seems a bit dirty :-)