Clean up. Now will not glitch on most emulators.