Implemented plugin redating.

Also removed a little dead code.