Removed test hook line and made it proper