Added shutter speed control logic