Sorry a bad idea...will rethink the way to organize this piece of code.