Similar

Before merging:

- Implement similar function from paper
- Clean up fox code
what happened here?