Implemented loading bar.