Added Dmitrijs's changes to animation