Added functionality for loading animation.
Added functionality for loading animation.