Various bug fixes, tape support.