A little debuggin in addTapeBatch() and one other function I can't remember off the top of my head.
Further debugging (not debuggin') of the code.