Some debug code, some camera generalisation.