Cleanup tube code.