Add the type to the profile
Add logging to the API