Added some animation functions