Added method for animation