Added loading bar, a few small functionalities