Bugfix: fixed assumption that project settings would always exist
Bugfix: Fixed function argument list for call to _output_to_view.