Better handling of cached view outputs
Added commented debugging lines for future use..