Added [] for buffer switching