Updated profile API endpoint and added suggestion logging