Function is now correctly working (notification of loading)