Added loading hook