Optimizing the Animation Code - First Phase