Creating a complete hook for badges