Remove extraneous function. Remove debugging, set loading flag so async loading works again