Changes hook function type