Modified camera setup code.