updated and fixed lag on Atmel TS