Started writing on a tape rotate function