To test hook