Always select last 'environment' facing camera.
Refactored global variables.