Should also add the hook to the api.php file