Cleaned up the IME a bit.