Fix, optimizations and new functionnalities for knockout definition