Moved register hook