Added logging to views.