Implemented automatic integration time adjustment