Add loading indicators to beautifying functions