Added helper methods to initialize tape and reset tape to beginning.