Added overload for setAnimation