[MOD] Added hook function to override from external scritp