Added code to animate shape changes.