Pruning implementation for Dynare 4.0.4?

Does anyone have (or know of) an implementation of Chris Sims' pruning algorithm that runs in Dynare 4.0.4? I'm interested in a modification of simult_.m along these lines:
viewtopic.php?f=2&t=1669
The above implementation was for 3.065 but doesn't seem to run in 4.0.4. Any pointers appreciated.
Thanks,
Dave
viewtopic.php?f=2&t=1669
The above implementation was for 3.065 but doesn't seem to run in 4.0.4. Any pointers appreciated.
Thanks,
Dave