Animation function modifyed

Now 'newSequence' params sets throuth the table