Fixed Red's plugin a bit.