Added tape number recognition to program.