Implemented loading animation.