added possibility to run animations with delay