Added support for multiple cameras.