- Cleanup in resonance code