Changed hooks to be in namespace and change platform to use it..