Added config dist, added a loading spinner