Added polynomial function. Added command instance counter.