Adding an auto pan