Adding logging to profile views.