Implemented support for automatic view detection