First version o new OTF. Many temporary and ugly hacks present in the code