Fix bugs, added loading bars.