Adds "tape" variable inside script.
Bugs fixed